﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/SiteAdmin.master" AutoEventWireup="true" CodeBehind="CapNhatPhongTro.aspx.cs" Inherits="Webmau.Admin.CapNhatPhongTro" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <table class="form">
        <tr>
            <td class="label">
                <span class="require">*</span>Địa điểm:</td>
            <td>
                <asp:DropDownList ID="ddlDiaDiem" runat="server" AppendDataBoundItems="true">
                    <asp:ListItem Value="0">-- Địa điểm --</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="ddlDiaDiem" CssClass="failureNotification" Display="Static" 
                    ErrorMessage="Chọn địa điểm" InitialValue="0" 
                    SetFocusOnError="true" />
            </td>
        </tr>
        <tr>
            <td class="label">
                <span class="require">*</span>Tên:</td>
            <td>
                <asp:TextBox ID="txtTen" runat="server" CssClass="textEntry" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtTen" CssClass="failureNotification" Display="Static" 
                    ErrorMessage="Nhập tên phòng trọ" SetFocusOnError="true" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Thông tin:</td>
            <td>
                <asp:TextBox ID="txtThongTin" runat="server" CssClass="textEntry" Rows="5" 
                    TextMode="MultiLine" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Giá phòng:</td>
            <td>
                <asp:TextBox ID="txtGiaPhong" runat="server" CssClass="textEntry" Width="120" />
            </td>
        </tr>
          
      <%--  <tr> 
            <td class="label">Thumbnail:</td> 
            <td> 
               <asp:Label ID="lblThumnail" runat="server" />   
               <asp:FileUpload ID="fuThumbnail" runat="server" /> 
               <asp:Button ID="btnUploadThumbnail" runat="server" Text="Upload"/>  
            </td> 
        </tr> 
        <tr> 
            <td class="label">Image:</td> 
            <td> 
                <asp:Label ID="lblImage" runat="server" /> 
                <asp:FileUpload ID="fuImage" runat="server" /> 
                <asp:Button ID="btnUploadImage" runat="server" Text="Upload" /> 
            </td> 
        </tr> --%>
        
                    <!-- Su dung popup-->
        <tr>
            <td class="label">
                Hình:</td>
            <td>
                <asp:TextBox ID="txtHinh" runat="server" CssClass="textEntry" 
                    Width="300" />
                <a href="javascript:void(0)" onclick="window.open(&quot;Upload.aspx?id=<%=txtHinh.ClientID %>&quot;,  
                        &quot;Upload&quot;, &quot;height=400,width=550&quot;);return false;" 
                    target="_blank">Select</a>
            </td>
        </tr>
        <%--<tr>
            <td class="label">
                Image:</td>
            <td>
                <asp:TextBox ID="txtImage" runat="server" CssClass="textEntry" Width="300" />
                <a href="javascript:void(0)" onclick="window.open(&quot;Upload.aspx?id=<%=txtImage.ClientID %>&quot;,  
                        &quot;Upload&quot;, &quot;height=400,width=550&quot;);return false;" 
                    target="_blank">Select</a>
            </td>
        </tr>--%>
        <tr>
            <td class="label">
                Tình trạng:</td>
            <td>
                <asp:CheckBox ID="chkTinhTrang" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnLuu" runat="server" Text="Cập nhật" onclick="btnLuu_Click" />
                <input onclick="location.href='Product.aspx'" type="button" value="Cancel" />
                <input id="btnReset" runat="server" type="reset" value="Reset" />
            </td>
        </tr>
    </table>
</asp:Content>

